var Mock = require('mockjs')
export default [
    {
        url: "/menu/get",
        method: "post",
        response: () => {
            return {
                code: 200,
                message: "获取成功",
                data: [
                    {
                        url: '/home',
                        name: '首页',
                        icon: 'HomeFilled',
                        pagePath: "pages/home/home.vue"
                    },
                    {
                        url: '/article',
                        name: '博客文章',
                        icon: 'List',
                        children: [
                            {
                                url: '/artcat',
                                name: '文章分类',
                                pagePath: "pages/artcat/list.vue",
                                children: [
                                    {
                                        url: '/list1',
                                        name: '文章分类1',
                                        pagePath: "pages/article/list.vue"
                                    },
                                    {
                                        url: '/list2',
                                        name: '文章分类2',
                                        pagePath: "pages/article/list.vue"
                                    }
                                ]
                            },
                            {
                                url: '/list',
                                name: '文章列表',
                                meta: {
                                    cache: true,
                                },
                                pagePath: "pages/article/list.vue"
                            },
                            {
                                url: '/form',
                                name: '文章添加/编辑',
                                hideMenu: true,
                                pagePath: "pages/article/form.vue"
                            }
                        ]
                    },
                    {
                        url: '/page01',
                        name: '测试页面1',
                        icon: 'HomeFilled',
                        pagePath: "pages/home/home.vue"
                    },
                    {
                        url: '/ucenter',
                        name: '用户中心',
                        icon: 'Management',
                        hideMenu: true,
                        children: [
                            {
                                url: '/userinfo',
                                name: '用户中心',
                                icon: 'icon-bg-file',
                                hideMenu: true,
                                pagePath: "pages/ucenter/userinfo.vue"
                            },
                            {
                                url: '/setting',
                                name: '设置',
                                icon: 'icon-bg-file',
                                hideMenu: true,
                                pagePath: "pages/ucenter/setting.vue"
                            }
                        ]
                    }
                ]
            };
        },
    },
];